package com.codes.plays;

import com.codes.core.common.enumtype.wordtpl.TplPersonTypeEnum;
import com.codes.core.common.enumtype.wordtpl.TplWordEnum;
import lombok.extern.slf4j.Slf4j;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description 
 * @Date 2020/7/10 17:32
 * @Created  peanut
 */
@Slf4j
public class Player {

    public static void main(String[] args) {



        tttt(1,1,1);


    }

    public static void tttt(Integer caseType, Integer tableType, Integer tplDetailType){

        Map<String,Object> reMap = new HashMap<>(10);
        TplWordEnum re = null; //  对应的文书模板详细信息
        boolean geren = tplDetailType == TplPersonTypeEnum.geren.getCode();
        switch (caseType){
            case 1  : //载质量
                log.info("载质量");
                switch (tableType){
                    case 1:  //    zhandianxinxi(1,"站点信息监测表"),
                        if(tplDetailType == TplPersonTypeEnum.zhedanghaopai.getCode()){
                            re = TplWordEnum.zaizhiliang6;// 站点信息监测表遮挡号牌
                        }else {
                            re = TplWordEnum.zaizhiliang5;// 站点信息监测表
                        }
                        break;
                    case 2:      //    liandengji(2,"立案登记表"),
                        if(geren){ // 个人
                            re = TplWordEnum.zaizhiliang3;
                        }else {
                            re = TplWordEnum.zaizhiliang4;  // 企业
                        }
                        break;
                    case 3:   //    chuliyijian(3,"案件处理意见"),
                        if(geren){
                            re = TplWordEnum.zaizhiliang1;
                        }else {
                            re = TplWordEnum.zaizhiliang2;
                        }
                        break;
                    case 4:     //    xunwenbilu(4,"询问笔录"),
                        if(tplDetailType == TplPersonTypeEnum.chezhufaren.getCode()) re = TplWordEnum.zaizhiliang10;
                        if(tplDetailType == TplPersonTypeEnum.daliren.getCode()) re = TplWordEnum.zaizhiliang09;
                        if(tplDetailType == TplPersonTypeEnum.jiahsiyuan.getCode()) re = TplWordEnum.zaizhiliang11;
                        break;
                    case 5:     //    weifaxingwei(5,"违法行为通知"),
                        re = TplWordEnum.zaizhiliang12;
                        break;
                    case 6:   //    songdahuizheng(6,"送达回证"),
                        re = TplWordEnum.zaizhiliang13;
                        break;
                    case 7:   //    chenshu(7,"陈述申辩"),
                        re = TplWordEnum.zaizhiliang14;
                        break;
                    case 8:   //    jieanbaogao(8,"结案报告"),
                        if(geren) re = TplWordEnum.zaizhiliang7;
                        if(!geren) re = TplWordEnum.zaizhiliang8;
                        break;
                    default:
                        break;
                }
                break;
            case 2 :   // 案件类型 1载质量2几何3年检4动态监控5改装6.环保7线路',
                log.info("几何超限");
                switch (tableType){
                    case 1:  //    zhandianxinxi(1,"站点信息监测表"),
                        if(tplDetailType == TplPersonTypeEnum.zhedanghaopai.getCode()){
                            re = TplWordEnum.zaizhiliang6;// 站点信息监测表遮挡号牌
                        }else {
                            re = TplWordEnum.zaizhiliang5;// 站点信息监测表
                        }
                        break;
                    case 2:      //    liandengji(2,"立案登记表"),
                        if(geren){ // 个人
                            re = TplWordEnum.zaizhiliang3;
                        }else {
                            re = TplWordEnum.zaizhiliang4;  // 企业
                        }
                        break;
                    case 3:   //    chuliyijian(3,"案件处理意见"),
                        if(geren){
                            re = TplWordEnum.zaizhiliang1;
                        }else {
                            re = TplWordEnum.zaizhiliang2;
                        }
                        break;
                    case 4:     //    xunwenbilu(4,"询问笔录"),
                        if(tplDetailType == TplPersonTypeEnum.chezhufaren.getCode()) re = TplWordEnum.zaizhiliang10;
                        if(tplDetailType == TplPersonTypeEnum.daliren.getCode()) re = TplWordEnum.zaizhiliang09;
                        if(tplDetailType == TplPersonTypeEnum.jiahsiyuan.getCode()) re = TplWordEnum.zaizhiliang11;
                        break;
                    case 5:     //    weifaxingwei(5,"违法行为通知"),
                        re = TplWordEnum.zaizhiliang12;
                        break;
                    case 6:   //    songdahuizheng(6,"送达回证"),
                        re = TplWordEnum.zaizhiliang13;
                        break;
                    case 7:   //    chenshu(7,"陈述申辩"),
                        re = TplWordEnum.zaizhiliang14;
                        break;
                    case 8:   //    jieanbaogao(8,"结案报告"),
                        if(geren) re = TplWordEnum.zaizhiliang7;
                        if(!geren) re = TplWordEnum.zaizhiliang8;
                        break;
                    default:
                        break;
                }
                break;
            case 3 :   // 案件类型 1载质量2几何3年检4动态监控5改装6.环保7线路',
                log.info("年检");
                switch (tableType){
                    case 1:  //    zhandianxinxi(1,"站点信息监测表"),
                        if(tplDetailType == TplPersonTypeEnum.zhedanghaopai.getCode()){
                            re = TplWordEnum.zaizhiliang6;// 站点信息监测表遮挡号牌
                        }else {
                            re = TplWordEnum.zaizhiliang5;// 站点信息监测表
                        }
                        break;
                    case 2:      //    liandengji(2,"立案登记表"),
                        if(geren){ // 个人
                            re = TplWordEnum.zaizhiliang3;
                        }else {
                            re = TplWordEnum.zaizhiliang4;  // 企业
                        }
                        break;
                    case 3:   //    chuliyijian(3,"案件处理意见"),
                        if(geren){
                            re = TplWordEnum.zaizhiliang1;
                        }else {
                            re = TplWordEnum.zaizhiliang2;
                        }
                        break;
                    case 4:     //    xunwenbilu(4,"询问笔录"),
                        if(tplDetailType == TplPersonTypeEnum.chezhufaren.getCode()) re = TplWordEnum.zaizhiliang10;
                        if(tplDetailType == TplPersonTypeEnum.daliren.getCode()) re = TplWordEnum.zaizhiliang09;
                        if(tplDetailType == TplPersonTypeEnum.jiahsiyuan.getCode()) re = TplWordEnum.zaizhiliang11;
                        break;
                    case 5:     //    weifaxingwei(5,"违法行为通知"),
                        re = TplWordEnum.zaizhiliang12;
                        break;
                    case 6:   //    songdahuizheng(6,"送达回证"),
                        re = TplWordEnum.zaizhiliang13;
                        break;
                    case 7:   //    chenshu(7,"陈述申辩"),
                        re = TplWordEnum.zaizhiliang14;
                        break;
                    case 8:   //    jieanbaogao(8,"结案报告"),
                        if(geren) re = TplWordEnum.zaizhiliang7;
                        if(!geren) re = TplWordEnum.zaizhiliang8;
                        break;
                    default:
                        break;
                }
                break;
            case 4 :   // 案件类型 1载质量2几何3年检4动态监控5改装6.环保7线路',
                log.info("动态监控");
                break;
            case 5 :   // 案件类型 1载质量2几何3年检4动态监控5改装6.环保7线路',
                log.info("改装");
                break;
            case 6 :   // 案件类型 1载质量2几何3年检4动态监控5改装6.环保7线路',
                log.info("环保");
                break;
            case 7 :   // 案件类型 1载质量2几何3年检4动态监控5改装6.环保7线路',
                log.info("路线");
                break;
            default:
                break;
        }
    }

}